<template>
  <div>
    <h2>A组件</h2>
    <button @click="clickHandler">触发自定义事件</button>
  </div>
</template>
<script lang="ts" setup>
const emits = defineEmits(["click"]);
const clickHandler = () => {
  emits("click");
};
</script>

<style lang="less" scoped></style>
